package epam.study.oop.stones.parrents;

import epam.study.oop.stones.enums.TypeOfStones;

public abstract class SemiJewel extends Stone {

	private static final long serialVersionUID = 7429503030006344L;
	
	// color semi-jewel stone
	public int color;

	public SemiJewel(float _weight) {
		super(_weight);
		typeOfStone = TypeOfStones.SEMIJEWEL;
	}

	// calculation of the cost of semi-jewel stone 
	public void calculateCostStoune() {
		cost = (int) Math.round(getWeight() * price);
	}

}